package stglxt;


import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

class stcy {
    private String mz;
    private String xsId;
    private String stmz;

    public stcy(String mz, String xsId, String stmz) {
        this.mz = mz;
        this.xsId = xsId;
        this.stmz = stmz;
    }

    public String getMz() {
        return mz;
    }

    public String getXsId() {
        return xsId;
    }

    public String getStmz() {
        return stmz;
    }
}

class shetuanhuodong {
    private String hdmz;
    private String hdDate;
    private String hdneirong;  // 新增活动内容属性
    // 参与活动的成员列表
    private List<stcy> canjiacy;

    public shetuanhuodong(String activityName, String activityDate, String activityContent) {  // 修改构造函数
        this.hdmz = activityName;
        this.hdDate = activityDate;
        this.hdneirong = activityContent;
        this.canjiacy = new ArrayList<>();
    }

    public String getHdmz() {
        return hdmz;
    }

    public String getActivityDate() {
        return hdDate;
    }

    public String getHdneirong() {  // 新增获取活动内容的方法
        return hdneirong;
    }

    public List<stcy> getCanjiacy() {
        return canjiacy;
    }

    // 添加参与活动成员的方法
    public void addParticipant(stcy member) {
        canjiacy.add(member);
    }
}